package com.sinogrand.elevator.data.mock

import com.sinogrand.elevator.data.models.*

object MockData {
    
    // 项目详情Mock数据
    fun getProjectDetailMockData(): ApiResponse<ProjectDetailData> {
        return ApiResponse(
            code = 0,
            data = ProjectDetailData(
                info = ProjectInfo(
                    id = 9,
                    name = "5",
                    type = 1,
                    address = "5",
                    details = listOf(
                        ProjectDetailField(
                            name = "项目名称",
                            code = "project_name",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "合同编号",
                            code = "contract_no",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "签订日期",
                            code = "sign_date",
                            type = "date",
                            options = null,
                            values = listOf("2025-09-11"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "签约单位名称",
                            code = "sign_unit_name",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "使用单位名称",
                            code = "user_unit_name",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "项目地址",
                            code = "project_address",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "甲方联系人",
                            code = "contact_name",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "甲方联系方式",
                            code = "contact_phone",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "项目负责人",
                            code = "project_admin_id",
                            type = "select",
                            options = null,
                            values = listOf("水哥"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "PROJECT_MANAGER",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "电梯品牌",
                            code = "p87yNwtTzW4sCS0O",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "合同金额（万元）",
                            code = "contract_amount",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "监检费",
                            code = "oYg3nkAHqB0LlCvO",
                            type = "select",
                            options = listOf("招标人负责", "供货商负责", "其他"),
                            values = listOf("招标人负责"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "土建配合费",
                            code = "SLhoud2hAot2xr8z",
                            type = "input",
                            options = listOf("招标人负责", "供货商负责", "其他"),
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "工期约定",
                            code = "VtdIFtMJkgG6ya4C",
                            type = "input",
                            options = null,
                            values = listOf("5"),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = null,
                            table_values = null
                        ),
                        ProjectDetailField(
                            name = "合同附件",
                            code = "contract_attachments",
                            type = "files",
                            options = null,
                            values = listOf(),
                            required = true,
                            disabled = false,
                            visible = true,
                            max = 0,
                            role_code = "",
                            table_columns = null,
                            files = listOf(
                                ProjectFile(
                                    name = "IR网站走查.pdf",
                                    url = "https://mcs-fz-ees.chinamye.com/hcsj-bucket/elevator-uploads/2025-09-17/7671b3616068bf962c1f54b571aabe89.pdf",
                                    size = 2152955,
                                    type = "application/pdf"
                                )
                            ),
                            table_values = null
                        )
                    ),
                    status = 1,
                    created_at = "",
                    updated_at = ""
                )
            ),
            msg = "ok"
        )
    }
    
    // 其他页面的Mock数据可以在这里添加
    // 例如：电梯列表、组员列表等
}
